package com.bountytask.dao;

import com.bountytask.entity.Information;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

@Repository
public interface InformationDao {
    //插入一条消息
    public void addInfo(Information info);
    //获取消息
    public List<Information> getInfo(HashMap<String,Object> map);
    //根据id获取消息
    public Information getInfoById(long id);
    //更新为已查看
    public int Viewed(long id);
    //根据id批量删除消息
    public void mDelete(List<Long> ids);
    //获取ids
    public List<Long> getIds(List<Long> ids);
}
